package com.atguigu.juc.chap01;

/**
 * @author Taeyang
 * @date 2025/3/31
 */
public class ThreadDemo {
    public static void main(String[] args) {
        T1 t1 = new T1();
        t1.setName("子线程");
        t1.start();

        System.out.println(Thread.currentThread().getName() + " is running");
    }
}


class T1 extends Thread {
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + " Thread线程");
    }
}
